Duck hunt
↓Cuối Trang
Bạn có thích BacNinhNo1.XTgem.Com?
Yahoo FaceBook Zing Me Google+ Twitter
Đánh giá XtCAT -:- 404
0: php_network_getaddresses: getaddrinfo failed: Name or service not known
Advertise Here

404 - Page Not Found - Back Home


Total Visits: 45620009
Visits Today: 229181
This Week: 2048331
This Month: 11435357

This site, is built entirely by using XtGem.

XtGem is a visual mobile site building tool, allowing users to create and maintain highly customizable personal mobile sites completely free of charge - and without a need to know any programming language at all!

(like - dislike) XtCAT -:- 404
0: php_network_getaddresses: getaddrinfo failed: Name or service not known
Advertise Here

404 - Page Not Found - Back Home


Total Visits: 45620020
Visits Today: 229192
This Week: 2048342
This Month: 11435368

This site, is built entirely by using XtGem.

XtGem is a visual mobile site building tool, allowing users to create and maintain highly customizable personal mobile sites completely free of charge - and without a need to know any programming language at all!


+A Tăng cỡ chữ-AMặc định- -AGiảm cỡ chữ
Toán tử trong PHP cũng giống như trong các ngôn ngữ khác.
Toán tử được sữ dụng khai báo trên tầm vực script sẽ có tầm vực trên toàn script .
Biến khai báo trong hàm ( function ) sẽ có tác dụng trên tầm vực của hàm đó .
1.Các phép toán học
========================
Toán tử| Tên| Ví dụ
-----------------------------------------
+cộng $a+$b;
-trừ $a-$b;
*Nhân $a*$b;
/chia $a/$b;
%Modulo $a%$b;
=======================
2.Các phép toán nối chuỗi
Các phép toán nối chuỗi là dấu "."
Ví dụ :
<?
$a="http://www.";
$b="library";
$b=$b."php.net";
$a=$a.$b;
echo$a;// bạn test xem
?>
3.Các phép toán trả về từ gán
Sữ dụng phép toán trả về phép toán học khác .
<?
$a="http://www.";
$b="libraryphp";
$a=$a.$b;
echo$a.($c=".net");// bạn test xem
?>
4.Các phép gán kết hợp
Trong PHP các bạn có thể sữ dụng các phép toán gán kết hợp,sẽ giảm bớt thời gian khai báo.
Sau đây là bảng thống kê phép toán gán kết hợp ( có 2 cách sữ dụng )
========================
Toán tử| sữ dụng| Tương ứng
========================
+=$a+=$b $a=$a+$b;
++$a++$a=$+1;
-=$a-=$b $a=$a-$b;
--$a--$a=$a-1;
/=$a/=$b $a=$a/$b;
*=$a*=$b $a=$a*$b;
%=$a%=$b $a=$a%$b;
.=$a.=$b $a=$a.$b;
========================
Trên đây là một số toán tử mà mình sưu tầm được, hi vọng nó sẻ giúp ít phần nào cho các bạn!

Counter : 1|2|385
Tags: bacninhno1.xtgem.com/wapmaster/php/mot so toan tu khac trong php,....
SEO : Bạn đến từ: